﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YasharEl.Infrastructure.EntityModel
{
    /// <summary>
    /// The interface for wraps concrete implementation of unit of work pattern.
    /// </summary>
    public interface IUnitOfWorkFactory : IDisposable
    {
        /// <summary>
        /// Begins unit of work.
        /// </summary>
        IUnitOfWork BeginUnitOfWork();

        /// <summary>
        /// Ends unit of work.
        /// </summary>
        void EndUnitOfWork(IUnitOfWork unitOfWork);
    }
}
